package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("tongRen.txt",true);
        String skill = "星爆气流斩";
        byte[] data = skill.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        fos.write(",我还能更快".getBytes(StandardCharsets.UTF_8));
        System.out.println("写完了");
        fos.close();
    }
}
